package xyz.mumuwei.youthcourseserver.config;

import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author mumuwei
 * @date 2022/4/8
 */
@Getter
@Component
public class HttpConfig {

    @Value("${ycms.http.max_total}")
    private int maxTotal;

    @Value("${ycms.http.max_per_route}")
    private int maxPerRoute;

    @Value("${ycms.http.timeout}")
    private int connTimeOut;

    @Value("${ycms.http.request_timeout}")
    private int connReqTimeOut;

    @Value("${ycms.http.socket_timeout}")
    private int socketTimeout;

    @Value("${ycms.http.validate_after_inactivity}")
    private int inactivity;


}
